<template>
	<view class="title">
		<view class="topLogo">
			<image v-if="false" :src="`https://wx.2024csnl.com/static/lottery/toplogo.png`" mode="heightFix" />
		</view>
		<view v-if="false" class="img">
			<image :src="titleImageUrl" mode="widthFix" />
		</view>
	</view>
</template>

<script>
	import {
		startGetPrizeMsg
	} from "../../api/index.js"
	export default {
		data() {
			return {}
		},
		props: {
			lotteryType: {
				type: String,
				default: "",
			}
		},
		computed: {
			titleImageUrl() {
				let name = ''
				if (this.lotteryType == "dzp") {
					name = `https://wx.2024csnl.com/static/lottery/lottery-2.png`
				} else if (this.lotteryType == "sj") {
					name = `https://wx.2024csnl.com/static/lottery/lottery-shop.png`
				} else if (this.lotteryType == "pm") {
					name = `https://wx.2024csnl.com/static/lottery/lottery-pm.png`
				} else if (this.lotteryType == "fl") {
					name = `https://wx.2024csnl.com/static/lottery/lottery-fl.png`
				} else if (this.lotteryType == "dr") {
					name = `https://wx.2024csnl.com/static/lottery/lottery-dr.png`
				} else if (this.lotteryType == "sapp") {
					name = `https://wx.2024csnl.com/static/lottery/lottery-sapp.png`
				} else if (this.lotteryType == "city") {
					name = `https://wx.2024csnl.com/static/lottery/lottery-city.png`
				}
				return name
			}
		},
		methods: {}
	}
</script>

<style lang="less" scoped>
	.title {
		position: relative;
		margin: 0px 0px 1px 0px;

		.topLogo {
			// #ifdef APP-PLUS
			padding-top: 15px;
			// #endif
			image {
				margin-left: 10px;
				display: block;
				height: 40px;
			}
		}

		.img {
			image {
				margin: auto;
				display: block;
				width: 85%;
			}
		}
	}
</style>